package cn.zcq100.Adapter.Ducks;

public class TestDuck {

	public static void main(String[] args) {
		GreenDuck greenduck=new GreenDuck();
		TurkeyAdapter adapter=new TurkeyAdapter(new MarllTurkey());
		
		testDuck(greenduck);
		testDuck(adapter);
	}
	
	
	static void testDuck(Duck duck){
		duck.quack();
		duck.fly();
	}
}
